package com.zhentao.api.article.fallback;

import com.zhentao.api.article.ArticleClientApi;
import com.zhentao.model.article.dto.ArticleDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

//feign请求失败的配置
@Component
public class ArticleClientApiFallback implements ArticleClientApi {

    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR,"获取数据失败");
    }

}
